package work01;

public class Teacher extends Person{
    protected double salary;
    public Teacher(String id,String name,String job,double salary){
        super(id,name,job);
        this.salary = salary;
    }
    public void talk(){
        System.out.println(job+":"+"姓名-"+name+" 职位-"+job+" 工资-"+salary);
    }
}
